package cn.zymall.dict.service.impl;

import cn.zymall.common.model.SysDict;
import cn.zymall.common.model.SysDictItem;
import cn.zymall.dict.mapper.DictItemMapper;
import cn.zymall.dict.mapper.DictMapper;
import cn.zymall.dict.service.DictItemService;
import cn.zymall.dict.service.DictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: DictItemServiceImpl
 * @Description: TODO
 * @author: 欧泽昌
 * @date: 2020/8/21 23:35
 * @version: V1.0
 */
@Service("DictItemService")
public class DictItemServiceImpl extends ServiceImpl<DictItemMapper, SysDictItem> implements DictItemService {

	@Autowired
	DictItemMapper DictItemMapper;

	@Override
	public List<SysDictItem> queryAll(SysDictItem sysDictItem) {
		return DictItemMapper.queryAll(sysDictItem);
	}

	@Override
	public int batchUpdate(List<SysDictItem> list) {
		return DictItemMapper.batchUpdate(list);
	}
	@Override
	public List<SysDictItem> queryName(String name){
		return DictItemMapper.queryName(name);
	};
}
